package com.hyz.advice;

import org.springframework.web.bind.annotation.ExceptionHandler;
import pojo.ResponseResult;

/**
 * @author HGD
 * @date 2022/10/8 17:19
 */
//@RestControllerAdvice
public class ProjectExceptionAdvice {
    @ExceptionHandler
    public ResponseResult<String> doException(Exception e) {
        return new ResponseResult<>(500, "服务器故障，请稍后再试");
    }
}
